package com.iaiai.cobra.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.iaiai.cobra.repository.bean.UserDept;
import com.iaiai.cobra.repository.mapper.UserDeptMapper;
import com.iaiai.cobra.system.service.UserDeptService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with UserDeptServiceImpl.
 * Package: com.iaiai.cobra.system.service.impl
 * Author: iaiai
 * Create Time: 2024/7/2 21:44
 * QQ: 176291935
 * Email: 176291935@qq.com
 * Description:
 */
@Service
public class UserDeptServiceImpl extends ServiceImpl<UserDeptMapper, UserDept> implements UserDeptService {

    public List<UserDept> queryUser(Long userId){
        return getBaseMapper().queryUser(userId);
    }

    //删除
    public void delUserDept(Long userId,Long deptId){
        getBaseMapper().delUserDept(userId,deptId);
    }

}
